package com.jiuyue.demo.Mapper;
import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jiuyue.demo.entity.ExternalContact;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2021-04-20
 */
@Mapper
public interface ExternalContactMapper extends BaseMapper<ExternalContact> {
    //根据unionid查询企业微信外部联系人
    List<ExternalContact> selectListByUnionId(@Param("listUnionIds") List<String> listUnionIds);
    List<ExternalContact> selectListBypage(@Param("userId") String userId,@Param("pageSize")Integer pageSize,@Param("pageNum") Integer pageNum);
    //获取今日新增客户的详情
    List<ExternalContact> selectListTodatAddBypage(@Param("userId")String userId,@Param("dateTime") DateTime dateTime,@Param("pageSize")Integer pageSize, @Param("pageNum")Integer pageNum);
    //获取今日离开客户详情
    List<ExternalContact> selectListTodatLeaveBypage(@Param("userId")String userId,@Param("dateTime") DateTime dateTime, @Param("pageSize")Integer pageSize,  @Param("pageNum")Integer pageNum);
}
